<h1>Welcome to JTED</h1>

JTED is the Jimix Test Execution Daemon, written for performing automated tests and analysis on the Jimix operating system. Both Jimix and JTED were written by James Molloy &lt;james@jamesmolloy.co.uk&gt;.

<p>
  <b><%= link_to 'View recent batch runs', :controller => 'batch', :action=>'index' %></b>
</p>

<table class="noborder" align="center" width="100%">
  <tr>
    <td align="center">
      <h3>Architectures</h3>
      <table>
        <tr>
          <th>Architectures</th>
        </tr>
<% 
@architectures.each { |a|
%>
        <tr>
          <td><%= a.name %></td>
        </tr>
<%
}
%>
        <tr>
          <td><%= link_to 'List', :controller => 'architectures', :action => 'list' %>
          | <%= link_to 'Add new...', :controller => 'architectures', :action => 'new' %></td>
        </tr>
      </table>
    </td>
    <td align="center">
      <h3>Machines</h3>
      <table>
        <tr>
          <th>Machine</th>
          <th>Architecture</th>
        </tr>
<%
@machines.each { |m|
%>
        <tr>
          <td><%= m.name %></td>
          <td><%= m.architecture.name %></td>
        </tr>
<%
}
%>
        <tr>
          <td colspan="2"><%= link_to 'List', :controller => 'machines', :action => 'list' %>
            | <%= link_to 'Add new...', :controller => 'machines', :action => 'new' %></td>
        </tr>
      </table>
    </td>
  </tr>
</table>

<table class="noborder" align="center" width="100%">
  <tr>
    <td align="center">
<h3>Known build types</h3>
<table>
  <tr>
    <th>Name</th>
    <th>Architecture</th>
  </tr>
<%
@build_types.each { |t|
%>
  <tr>
    <td><%= t.name %></td>
    <td><%= t.architecture.name %></td>
  </tr>
<%
}
%>
  <tr>
    <td colspan="2"><%= link_to 'List', :controller => 'build_types', :action => 'list' %>
    | <%= link_to 'Add new...', :controller => 'build_types', :action => 'new' %></td>
  </tr>
</table>
    </td>
    <td align="center">
<h3>Known test types</h3>
<table>
  <tr>
    <th>Name</th>
    <th>Relies on</th>
  </tr>
<%
@test_types.each { |t|
%>
  <tr>
    <td><%= link_to t.name, :controller => 'test_types', :action => 'show', :id => t.id %></td>
    <td><%= t.build_type.name %></td>
  </tr>
<%
}
%>
  <tr>
    <td><%= link_to 'List', :controller => 'test_types', :action => 'list' %>
    | <%= link_to 'Add new...', :controller => 'test_types', :action => 'new' %></td>
  </tr>
</table>
    </td>
    <td align="center">
<h3>Test suites</h3>
<table>
  <tr>
    <th>Name</th>
    <th>Contents</th>
  </tr>
<%
@test_suites.each { |t|
%>
  <tr>
    <td><%= link_to t.name, :controller => 'test_suites', :action => 'show', :id => t.id %></td>
    <td><%= t.build_types.length %> builds, <%= t.test_types.length %> tests</td>
  </tr>
<%
}
%>
  <tr>
    <td><%= link_to 'List', :controller => 'test_suites', :action => 'list' %>
    | <%= link_to 'Add new...', :controller => 'test_suites', :action => 'new' %></td>
  </tr>
</table>
  </td>
  </tr>
</table>

<h3>Dictionary</h3>
<%= Word.count %> words currently in the dictionary (<%= link_to 'modify...', :controller => 'words', :action => 'index' %>).